const toolbarOpt = [
    {
        type: 'rect',
        text: '矩形',
    },
    {
        type: 'circle',
        text: '圆形',
    },
    {
        type: 'ellipse',
        text: '椭圆',
    },
    {
        type: 'diamond',
        text: '菱形',
    },
    {
        type: 'text',
        text: '文本',
    },
]

const testData = {
    // 节点
    nodes: [
        {
            id: 50,
            type: 'rect',
            x: 100,
            y: 150,
            text: '你好',
        },
        {
            id: 21,
            type: 'circle',
            x: 300,
            y: 150,
        },
    ],
    // 边
    edges: [
        {
            type: 'polyline',
            sourceNodeId: 50,
            targetNodeId: 21,
        },
    ],
}

const predefineColors = [
    '#ff4500',
    '#ff8c00',
    '#ffd700',
    '#90ee90',
    '#00ced1',
    '#1e90ff',
    '#c71585',
    'rgba(255, 69, 0, 0.68)',
    'rgb(255, 120, 0)',
    'hsv(51, 100, 98)',
    'hsva(120, 40, 94, 0.5)',
    'hsl(181, 100%, 37%)',
    'hsla(209, 100%, 56%, 0.73)',
    '#c7158577',
]

export { toolbarOpt, testData, predefineColors }
